package user;

import Book.BookList;
import operation.Ioperation;

public abstract class User {
    protected String name;
    protected Ioperation[]ioperations;
    public User(String name) {
        this.name = name;
    }

    public int menu() {
        return 0;
    }

    public   void doOperation(int choice, BookList bookList){
        this.ioperations[choice].work(bookList);
    }
}
